//
//  MyViewController.m
//  ScrollViewExample
//
//  Created by Marcus Crafter on 22/05/10.
//  Copyright 2010 Red Artisan. All rights reserved.
//

#import "MyViewController.h"
#import "TableVC.h"
#import "LoginFBVC.h"
#import "ParseJsonVC.h"
#import "AnimationVC.h"
#import "TableMultiViewVC.h"
#import "TimerVC.h"
#import "CircleImgVC.h"
#import "CustomSeekBarVC.h"
#import "CircleRunningProgressBarVC.h"
#import "DialogWithTableViewVC.h"
#import "UXTableViewController.h"
#import "StickerViewVC.h"
#import "HUDVC.h"
#import "ICETutorialController.h"
#import "TagListVC.h"
#import "BottomAlertVC.h"
#import "AMSlideMenuVC.h"

@implementation MyViewController

@synthesize scrollView, contentView;

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"Scrollable Content";

    [self.scrollView addSubview:self.contentView];
    self.scrollView.contentSize = self.contentView.bounds.size;
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    
    NSLog(@"initWithNibName");
    return self;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

- (void)viewDidUnload {
    self.scrollView  = nil;
    self.contentView = nil;
    [super viewDidUnload];
}

- (IBAction)onLoginFb:(UIButton *)sender
{
    NSLog(@"onLoginFb");
    
    LoginFBVC *vc = [[LoginFBVC alloc] initWithNibName:@"LoginFBVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onAnimation:(UIButton *)sender
{
    NSLog(@"onAnimation");
    
    AnimationVC *vc = [[AnimationVC alloc] initWithNibName:@"AnimationVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onCircleImgView:(UIButton *)sender
{
    NSLog(@"onCircleImgView");
    
    CircleImgVC *vc = [[CircleImgVC alloc] initWithNibName:@"CircleImgVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onCircleRunningProgressBar:(UIButton *)sender
{
    NSLog(@"onCircleRunningProgressBar");
    
    CircleRunningProgressBarVC *vc = [[CircleRunningProgressBarVC alloc] initWithNibName:@"CircleRunningProgressBarVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onCustomSeekbar:(UIButton *)sender
{
    NSLog(@"onCustomSeekbar");
    
    CustomSeekBarVC *vc = [[CustomSeekBarVC alloc] initWithNibName:@"CustomSeekBarVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onParseJson:(UIButton *)sender
{
    NSLog(@"onParseJson");
    
    ParseJsonVC *vc = [[ParseJsonVC alloc] initWithNibName:@"ParseJsonVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTableMultiView:(UIButton *)sender
{
    NSLog(@"onTableMultiView");
    
    TableMultiViewVC *vc = [[TableMultiViewVC alloc] initWithNibName:@"TableMultiViewVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTableView:(UIButton *)sender
{
    NSLog(@"onTableView");
    
    TableVC *vc = [[TableVC alloc] initWithNibName:@"TableVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTimer:(UIButton *)sender
{
    NSLog(@"onTimer");
    
    TimerVC *vc = [[TimerVC alloc] initWithNibName:@"TimerVC" bundle:nil];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onDRPaginatedScrollView:(UIButton *)sender
{
    NSLog(@"onDRPaginatedScrollView");
}

- (IBAction)onSQLiteDB:(UIButton *)sender
{
    NSLog(@"onSQLiteDB");
    DialogWithTableViewVC *vc = [DialogWithTableViewVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTableViewWithHeader:(UIButton *)sender
{
    NSLog(@"onTableViewWithHeader");
    UXTableViewController *vc = [UXTableViewController alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onDialogWithTableView:(UIButton *)sender
{
    NSLog(@"onDialogWithTableView");
    DialogWithTableViewVC *vc = [DialogWithTableViewVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onStickerView:(UIButton *)sender
{
    NSLog(@"onStickerView");
    StickerViewVC *vc = [StickerViewVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onHUD:(UIButton *)sender
{
    NSLog(@"onHUD");
    HUDVC *vc = [HUDVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onIntroView:(id)sender
{
    NSLog(@"onIntroView");
    ICETutorialController *vc = [ICETutorialController alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onTagList:(UIButton *)sender
{
    NSLog(@"onTagList");
    TagListVC *vc = [TagListVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onBottomAlertView:(UIButton *)sender
{
    NSLog(@"onBottomAlertView");
    BottomAlertVC *vc = [BottomAlertVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)onAMSlideMenu:(UIButton *)sender
{
    NSLog(@"onAMSlideMenu");
    AMSlideMenuVC *vc = [AMSlideMenuVC alloc];
    [self.navigationController pushViewController:vc animated:YES];
}
@end
